<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <title>青岛4天游玩攻略</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f5f5f5;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        header {
            text-align: center;
            padding: 40px 0;
            background: linear-gradient(135deg, #0066cc, #00a0e9);
            color: white;
            margin-bottom: 30px;
            border-radius: 10px;
        }

        .day-card {
            background: white;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 30px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .spot-cards {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .spot-card {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }

        .spot-card:hover {
            transform: translateY(-5px);
        }

        .spot-card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .spot-info {
            padding: 15px;
        }

        .spot-info h3 {
            margin-bottom: 10px;
            color: #333;
        }

        .spot-info p {
            color: #666;
            font-size: 14px;
            margin-bottom: 8px;
        }

        .map-container {
            width: 100%;
            height: 400px;
            margin: 20px 0;
            border-radius: 10px;
            overflow: hidden;
        }

        .day-title {
            color: #0066cc;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
        }

        .day-title::before {
            content: '';
            width: 4px;
            height: 24px;
            background: #0066cc;
            margin-right: 10px;
            border-radius: 2px;
        }

        .transport-info {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            margin: 15px 0;
            border-left: 4px solid #0066cc;
        }

        .transport-info p {
            color: #666;
            font-size: 14px;
        }

        .navigation-btn {
            display: inline-block;
            background: #0066cc;
            color: white;
            padding: 8px 15px;
            border-radius: 5px;
            text-decoration: none;
            margin-top: 10px;
            font-size: 14px;
        }

        .navigation-btn:hover {
            background: #005bb5;
        }

        .weather-info {
            background: #fff;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
    </style>
</head>
<body>
<header>
    <h1>青岛四天精选游玩攻略</h1>
    <p>五一假期特别规划 | 海滨城市 • 啤酒之都</p>
</header>

<div class="container">
    <div class="weather-info" id="weather-container">
        <h3>天气预报加载中...</h3>
    </div>

    <div class="day-card">
        <h2 class="day-title">第一天：老城区经典游</h2>
        <div class="spot-cards">
            <div class="spot-card">
                <img alt="栈桥" src="https://youimg1.c-ctrip.com/target/100h1f000001gq71kB5C5.jpg">
                <div class="spot-info">
                    <h3>栈桥</h3>
                    <p>青岛地标性建筑，可观赏日出日落</p>
                    <p>建议游玩时间：1.5小时</p>
                    <p>地址：市南区太平路栈桥</p>
                    <a class="navigation-btn"
                       href="https://uri.amap.com/navigation?to=120.312538,36.063236,栈桥&mode=car&policy=1&src=mypage&coordinate=gaode&callnative=0" target="_blank">导航到这里</a>
                </div>
            </div>
            <div class="spot-card">
                <img alt="八大关" src="https://youimg1.c-ctrip.com/target/100w1f000001gw0taF5BC.jpg">
                <div class="spot-info">
                    <h3>八大关</h3>
                    <p>欧式建筑群，漫步观赏各国建筑风情</p>
                    <p>建议游玩时间：2.5小时</p>
                    <p>地址：市南区汇泉路</p>
                    <a class="navigation-btn"
                       href="https://uri.amap.com/navigation?to=120.324557,36.053984,八大关&mode=car&policy=1&src=mypage&coordinate=gaode&callnative=0" target="_blank">导航到这里</a>
                </div>
            </div>
            <div class="spot-card">
                <img alt="天主教堂" src="https://youimg1.c-ctrip.com/target/100j1f000001gnt4q411F.jpg">
                <div class="spot-info">
                    <h3>天主教堂（浙江路天主教堂）</h3>
                    <p>哥特式建筑，青岛最大的教堂</p>
                    <p>建议游玩时间：1小时</p>
                    <p>地址：市南区浙江路天主教堂</p>
                    <a class="navigation-btn"
                       href="https://uri.amap.com/navigation?to=120.314689,36.062614,天主教堂&mode=car&policy=1&src=mypage&coordinate=gaode&callnative=0" target="_blank">导航到这里</a>
                </div>
            </div>
        </div>
        <div class="transport-info">
            <p>交通建议：景点相距较近，可步行或打车。栈桥→八大关约10分钟车程，八大关→天主教堂约8分钟车程。建议上午游览栈桥，下午游览八大关和天主教堂。</p>
        </div>
    </div>

    <div class="day-card">
        <h2 class="day-title">第二天：海滨度假游</h2>
        <div class="spot-cards">
            <div class="spot-card">
                <img alt="第一海水浴场" src="https://youimg1.c-ctrip.com/target/100v1f000001h24ju4B5F.jpg">
                <div class="spot-info">
                    <h3>第一海水浴场</h3>
                    <p>青岛最著名的海水浴场，沙质细腻</p>
                    <p>建议游玩时间：3小时</p>
                    <p>地址：市南区东海西路</p>
                    <a class="navigation-btn"
                       href="https://uri.amap.com/navigation?to=120.330176,36.054726,第一海水浴场&mode=car&policy=1&src=mypage&coordinate=gaode&callnative=0" target="_blank">导航到这里</a>
                </div>
            </div>
            <div class="spot-card">
                <img alt="青岛啤酒博物馆" src="https://youimg1.c-ctrip.com/target/100q1f000001gsrjb6973.jpg">
                <div class="spot-info">
                    <h3>青岛啤酒博物馆</h3>
                    <p>了解青岛啤酒历史，品尝原浆啤酒</p>
                    <p>建议游玩时间：2小时</p>
                    <p>地址：市北区登州路56号</p>
                    <a class="navigation-btn"
                       href="https://uri.amap.com/navigation?to=120.324557,36.053984,青岛啤酒博物馆&mode=car&policy=1&src=mypage&coordinate=gaode&callnative=0" target="_blank">导航到这里</a>
                </div>
            </div>
        </div>
        <div class="transport-info">
            <p>交通建议：从第一海水浴场到啤酒博物馆约15分钟车程。建议上午在海水浴场游玩，下午参观啤酒博物馆。</p>
        </div>
    </div>

    <div class="day-card">
        <h2 class="day-title">第三天：现代青岛游</h2>
        <div class="spot-cards">
            <div class="spot-card">
                <img alt="奥帆中心" src="https://youimg1.c-ctrip.com/target/100d1f000001gpd4tFA6C.jpg">
                <div class="spot-info">
                    <h3>奥帆中心</h3>
                    <p>2008奥运会帆船比赛场地，现代化滨海景区</p>
                    <p>建议游玩时间：2.5小时</p>
                    <p>地址：市南区奥帆中心</p>
                    <a class="navigation-btn"
                       href="https://uri.amap.com/navigation?to=120.399528,36.063236,奥帆中心&mode=car&policy=1&src=mypage&coordinate=gaode&callnative=0" target="_blank">导航到这里</a>
                </div>
            </div>
            <div class="spot-card">
                <img alt="五四广场" src="https://youimg1.c-ctrip.com/target/100b1f000001gtn0277D4.jpg">
                <div class="spot-info">
                    <h3>五四广场</h3>
                    <p>标志性城市广场，五月的风雕塑</p>
                    <p>建议游玩时间：1.5小时</p>
                    <p>地址：市南区东海东路</p>
                    <a class="navigation-btn"
                       href="https://uri.amap.com/navigation?to=120.384679,36.067251,五四广场&mode=car&policy=1&src=mypage&coordinate=gaode&callnative=0" target="_blank">导航到这里</a>
                </div>
            </div>
        </div>
        <div class="transport-info">
            <p>交通建议：奥帆中心到五四广场约10分钟车程。建议下午到五四广场看日落。</p>
        </div>
    </div>

    <div class="day-card">
        <h2 class="day-title">第四天：自然风光游</h2>
        <div class="spot-cards">
            <div class="spot-card">
                <img alt="崂山" src="https://youimg1.c-ctrip.com/target/100v1f000001h24cs27DD.jpg">
                <div class="spot-info">
                    <h3>崂山风景区</h3>
                    <p>道教名山，青岛最高峰</p>
                    <p>建议游玩时间：4-5小时</p>
                    <p>地址：崂山区崂山风景区</p>
                    <a class="navigation-btn"
                       href="https://uri.amap.com/navigation?to=120.628559,36.107143,崂山风景区&mode=car&policy=1&src=mypage&coordinate=gaode&callnative=0" target="_blank">导航到这里</a>
                </div>
            </div>
        </div>
        <div class="transport-info">
            <p>交通建议：从市区到崂山约1小时车程，建议包车或参加一日游。建议上午出发，避开中午高温。</p>
        </div>
    </div>

    <div class="map-container" id="map"></div>
</div>

<script type="text/javascript">
    window._AMapSecurityConfig = {
        securityJsCode: '89453ef90aba7e14b8b4ef2f3642f99e'
    }
</script>
<script src="https://webapi.amap.com/maps?v=2.0&key=89453ef90aba7e14b8b4ef2f3642f99e" type="text/javascript"></script>
<script>
    // 等待地图脚本加载完成后初始化地图
    window.onload = function () {
        var map = new AMap.Map('map', {
            zoom: 12,
            center: [120.384679, 36.067251] // 青岛市中心坐标
        });

        // 添加景点标记
        var markers = [
            {position: [120.312538, 36.063236], title: '栈桥'},
            {position: [120.324557, 36.053984], title: '八大关'},
            {position: [120.314689, 36.062614], title: '天主教堂'},
            {position: [120.330176, 36.054726], title: '第一海水浴场'},
            {position: [120.324557, 36.053984], title: '青岛啤酒博物馆'},
            {position: [120.399528, 36.063236], title: '奥帆中心'},
            {position: [120.384679, 36.067251], title: '五四广场'},
            {position: [120.628559, 36.107143], title: '崂山风景区'}
        ];

        markers.forEach(function (marker) {
            new AMap.Marker({
                map: map,
                position: marker.position,
                title: marker.title
            });
        });

        // 添加比例尺和缩放控件
        map.addControl(new AMap.Scale());
        map.addControl(new AMap.ToolBar());
    }
</script>
</body>
</html>
